package com.tongzhan.entity.qiaotai;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tongzhan.annotation.ColumnDoc;
import com.tongzhan.annotation.PrimaryKey;
import com.tongzhan.annotation.TableDoc;
import com.tongzhan.base.BaseModel;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * 城镇信息
 * Create By htmic on 2020/7/29
 */
@TableDoc(table = "t_town_info",desc = "城镇信息")
@Data
@Document(collection = "t_town_info")
public class TownInfo extends BaseModel {

    @ColumnDoc("主键id")
    @PrimaryKey
    private String id;

    @ColumnDoc("")
    private String name;

    @ColumnDoc("添加时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date addTime;//添加时间

    @ColumnDoc("是否删除")
    private Integer is_del;//是否删除
}
